import request from '@/utils/request2'

// 获取文件
export function getFile(query) {
  return request({
    url: '/ehs_files/getfile',
    method: 'get',
    baseURL: process.env.VUE_APP_BASE_API2,
    params: query,
    responseType: 'blob'
  })
}
// 获取文件名称
export function getFileName(query) {
  return request({
    url: '/ehs_files/getfilename',
    method: 'get',
    baseURL: process.env.VUE_APP_BASE_API2,
    params: query

  })
}
export function UploadFiles(data) {
  return request({
    url: '/ehs_files/upload',
    method: 'post',
    baseURL: process.env.VUE_APP_BASE_API2,
    params: data
  })
}
